package protobuf;

import lombok.Getter;

public class ProtoInstance {

    /**
     * 魔数，可以通过配置获取
     */
    public static final short MAGIC_CODE = 0x86;

    /**
     * 版本号
     */
    public static final short VERSION_CODE = 0x01;

    /**
     * 返回码 枚举类
     */
    public enum LoginResponseStateCodeEnum {

        SUCCESS(0, "Success"),
        AUTH_FAILED(1, "登录失败"),
        NO_TOKEN(2, "没有授权码"),
        UNKNOWN_ERROR(3, "未知错误");

        @Getter
        private final Integer code;
        @Getter
        private final String desc;

        LoginResponseStateCodeEnum(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

    }

}
